Data processing system and data processing method

ABSTRACT

Embodiments of the present invention provide a data processing system and a data processing method. An MMIO address of a data request is obtained, where data stored in a PCIe storage device can be directly obtained from the MMIO address, and according to the MMIO address, a network adapter can directly read the data from the PCIe storage device of the data processing system, and transmit the data to a second data processing system, or directly write the data received from the second data processing system into the PCIe storage device. Therefore, the processing system can implement transmitting data directly from the PCIe storage device to the network adapter without using memory. During data transmission between the two data processing systems, a usage ratio of a resource, such as memory and a CPU, is reduced, and efficiency of data transmission is improved.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation of U.S. patent application Ser. No.14/567,656, filed on Dec. 11, 2014, which is a continuation ofInternational Patent Application No. PCT/CN2013/086170, filed on Oct.29, 2013, both of which are hereby incorporated by reference in theirentireties.

TECHNICAL FIELD

The present invention relates to the field of information technologies,and in particular, to a device, a method, and a system for datatransmission between different data processing systems.

BACKGROUND

In a trend of big data, a multi-duplicate manner is usually used toensure data reliability. However, many data migration operations betweennodes are usually caused when the multi-duplicate manner is used.

An RDMA (Remote Direct Memory Access) technology implements reading ofdata between two nodes on a network. An RDMA directly transmits datainto memory of a computer through a network, and fast migrates the datafrom a local node to memory of a remote node without causing anyinfluence on an operating system.

RDMA information transmitted on the network includes a destinationvirtual address, a memory key and the data itself. Request completionmay completely be processed in user space (an arrangement is completedby using a polling user level), or is processed by using kernel memoryin a case in which an application sleeps until a request is complete. Byperforming an RDMA operation, an application may read data from memoryof a remote application or write data into the memory. A network adapterof a target host determines a memory key, and directly writes the datainto an application cache.

The RDMA requires that data transmission between two servers thatcommunicate with each other must be performed on transmitted data byusing memory. If the memory is not used, data transmission cannot beperformed. As a result, a delay of data transmission and a usage ratioof the memory are relatively high.

SUMMARY

Embodiments of the present invention provide a system and a dataprocessing method, so as to improve efficiency and device utilizationfor data transmission between two data processing systems.

An embodiment of the present invention provides a data processingsystem, including a central processing unit CPU, memory, a PeripheralComponent Interconnect Express PCIe controller, a network adapter, andat least one PCIe storage device, and further including:

a management unit, configured to obtain, when the data processing systemreceives a data request, a first storage address of requested data inthe PCIe storage device according to first address information carriedin the data request, where the first storage address is a memory mappinginput/output MMIO address, where

the network adapter directly reads data from the PCIe storage deviceaccording to the first storage address, and transmits the data to asecond data processing system, or directly writes the data received fromthe second data processing system into the PCIe storage device, wherethe second data processing system is a data processing system thatcommunicates with a first data processing system through a network.

Optionally, the PCIe storage device includes an address translatingunit, configured to obtain a second storage address of the datarequested by the data request in the PCIe storage device according tothe first storage address.

Optionally, the second storage address is a physical address or alogical address, where the physical address is a linear continuousaddress in which data can be directly read, and the logical address isan address which is obtained after linear ordering is performed on anonlinear continuous physical address.

Optionally, the address translating unit is further configured toconfigure a first base address register BAR, where the first BAR addressregister stores a correspondence between the first storage address andthe second storage address, and the second storage address is a linearcontinuous storage address.

Optionally, the address translating unit is further configured toconfigure a second BAR address register, where the second BAR addressregister stores a correspondence between the first storage address and avirtual address of the second storage address, the second storageaddress is a nonlinear continuous storage address, and the virtualaddress of the second storage address is an address which is obtainedafter linear ordering is performed on the second storage address.

Optionally, the CPU assigns a unique identifier to each PCIe storagedevice, where the unique identifier is used to identify each PCIestorage device.

Optionally, the first address information includes the unique identifierand a logical block address LBA of the PCIe storage device.

Optionally, the management unit is further configured to establish acorrespondence between the unique identifier and a base address in a BARof the PCIe storage device.

The unique identifier includes at least one of a vender identity VenderID, a device identity Device ID, and a hard disk serial number; or theunique identifier is an identifier which is obtained after hashingprocessing is performed on the at least one of the Vender ID, the DeviceID, and the hard disk serial number.

Optionally, the management unit includes a base address obtaining unitand a storage address obtaining unit, where

the base address obtaining unit is configured to obtain, when the dataprocessing system receives a first data request of the second dataprocessing system that communicates with the data processing systemthrough the network, a base address in a BAR of the requested dataaccording to a unique identifier that is of the PCIe storage device andis carried in the first data request; and

the storage address obtaining unit is configured to obtain the firststorage address of the requested data in the PCIe storage deviceaccording to the base address in the BAR and an LBA address carried inthe first data request, where the first storage address is an MMIOaddress.

Optionally, the CPU registers the obtained first storage address in thenetwork adapter.

Optionally, the data processing system further includes a sending unit,where the sending unit is configured to send the first storage addressobtained by the management unit to the second data processing system.

Optionally, the PCIe controller obtains a data request that is sent bythe network adapter and carries the first storage address, and theaddress translating unit obtains data of the second storage address, andreturns the obtained data to the network adapter, or writes the datasent by the network adapter into the second storage address.

Optionally, the management unit further includes a global base addressobtaining unit and a global storage address obtaining unit, where

the global base address obtaining unit is configured to obtain, when thedata processing system receives a second data request, a base address ofdata requested by the second data request in a BAR of the second dataprocessing system according to a unique identifier that is of the PCIestorage device and is carried in the second data request, where thesecond data request is a request for sending data to the second dataprocessing system or reading data from the second data processingsystem; and

the global storage address obtaining unit is configured to obtain,according to the base address in the BAR of the second data processingsystem and an LBA address carried in the second data request, an MMIOaddress of the data requested by the second data request in the seconddata processing system.

Optionally, a data transform unit in a PCIe controller of the seconddata processing system obtains, according to the MMIO address of thedata that is requested by the second data request sent by the dataprocessing system in the second data processing system, a physicaladdress or a logical address of the data requested by the second datarequest in the second data processing system, where the physical addressis a linear continuous address in which data can be directly read, andthe logical address is an address which is obtained after linearordering is performed on a nonlinear continuous physical address.

An embodiment of the present invention provides a data processingmethod, where the method is applied to a data processing systemincluding a central processing unit CPU, memory, a Peripheral ComponentInterconnect Express PCIe controller, a network adapter, and at leastone PCIe storage device, and the method includes:

obtaining, when the data processing system receives a data request,first address information carried in the data request;

obtaining a first storage address of requested data in the PCIe storagedevice according to the first address information, where the firststorage address is an MMIO address; and

directly reading, by the network adapter, data from the PCIe storagedevice according to the first storage address, and transmitting the datato a second data processing system, or directly writing the datareceived from the second data processing system into the PCIe storagedevice, where the second data processing system is a data processingsystem that communicates with the first data processing system through anetwork.

Optionally, the PCIe storage device obtains a second storage address ofthe data requested by the data request in the PCIe storage deviceaccording to the first storage address.

Optionally, the second storage address is a physical address or alogical address, where the physical address is a linear continuousaddress in which data can be directly read, and the logical address isan address which is obtained after linear ordering is performed on anonlinear continuous physical address.

Optionally, the method further includes:

configuring, by the PCIe controller, a first BAR address register, wherethe first BAR address register stores a correspondence between the firststorage address and the second storage address, and the second storageaddress is a linear continuous storage address.

Optionally, the method further includes:

configuring, by the PCIe controller, a second BAR address register,where the second BAR address register stores a correspondence betweenthe first storage address and a virtual address of the second storageaddress, the second storage address is a nonlinear continuous storageaddress, and the virtual address of the second storage address is anaddress which is obtained after linear ordering is performed on thesecond storage address.

Optionally, the CPU assigns a unique identifier to each PCIe storagedevice, where the unique identifier is used to identify each PCIestorage device.

Optionally, the first address information includes the unique identifierand a logical block address LBA of the PCIe storage device.

Optionally, the method further includes:

establishing a correspondence between the unique identifier and a baseaddress in a BAR of the PCIe storage device.

Optionally, the unique identifier includes at least one of a venderidentity Vender ID, a device identity Device ID, and a hard disk serialnumber; or the unique identifier is an identifier which is obtainedafter hashing processing is performed on the at least one of the VenderID, the Device ID, and the hard disk serial number.

Optionally, the obtaining a first storage address of requested data inthe PCIe storage device includes:

obtaining a base address in a BAR of the requested data according to aunique identifier that is of the PCIe storage device and is carried inthe first data request; and

obtaining the first storage address of the requested data in the PCIestorage device according to the base address in the BAR and an LBAaddress in the first data request, where the first storage address is anMMIO address.

Optionally, the CPU registers the obtained first storage address in thenetwork adapter.

Optionally, the method further includes:

sending, by the data processing system, the obtained first storageaddress to the second data processing system.

Optionally, the PCIe controller obtains a data request that is sent bythe network adapter and carries the first storage address, and obtainsdata of a second storage address, and returns the obtained data to thenetwork adapter, or writes the data sent by the network adapter into thesecond storage address.

Optionally, the method further includes:

obtaining, when the data processing system receives a second datarequest, a base address of data requested by the second data request ina BAR of the second data processing system according to a uniqueidentifier that is of the PCIe storage device and is carried in thesecond data request, where the second data request is a request forsending data to the second data processing system or reading data fromthe second data processing system; and

obtaining, according to the base address in the BAR of the second dataprocessing system and an LBA address carried in the second data request,an MMIO address of the data requested by the second data request in thesecond data processing system.

Optionally, a PCIe controller of the second data processing systemobtains, according to the MMIO address of the data that is requested bythe second data request sent by the data processing system in the seconddata processing system, a physical address or a logical address of thedata requested by the second data request in the second data processingsystem, where the physical address is a linear continuous address inwhich data can be directly read, and the logical address is an addresswhich is obtained after linear ordering is performed on a nonlinearcontinuous physical address.

In the data processing system and the data processing method provided bythe embodiments of the present invention, an MMIO address of a datarequest is obtained, where data stored in a PCIe storage device can bedirectly obtained from the MMIO address, and according to the MMIOaddress, a network adapter can directly read the data from the PCIestorage device of the data processing system, and transmit the data to asecond data processing system, or directly write the data received fromthe second data processing system into the PCIe storage device.Therefore, the processing system can implement, when performing datatransmission between two data processing systems that communicatethrough a network, transmitting data directly from the PCIe storagedevice to the network adapter without using memory. During datatransmission between the two data processing systems, a usage ratio of aresource, such as memory and a CPU, is reduced, and efficiency of datatransmission is improved.

BRIEF DESCRIPTION OF DRAWINGS

To describe the technical solutions in the embodiments of the presentinvention or in the prior art more clearly, the following brieflyintroduces the accompanying drawings required for describing theembodiments or the prior art. Apparently, the accompanying drawings inthe following description show merely some embodiments of the presentinvention, and a person of ordinary skill in the art may still deriveother drawings from these accompanying drawings without creativeefforts.

FIG. 1 is a schematic flowchart of migrating data in a remote nodestorage device to a local node storage device in the prior art;

FIG. 2 is a schematic structural diagram of a data processing systemaccording to an embodiment of the present invention;

FIG. 3 is a schematic structural diagram of a specific implementation ofa data processing system according to an embodiment of the presentinvention;

FIG. 4 is a schematic flowchart of a data processing method according toan embodiment of the present invention;

FIG. 5 is a schematic structural diagram of base hardware of animplementation manner of a data processing system according to anembodiment of the present invention;

FIG. 6 is an exemplary diagram of a correspondence between a uniqueidentifier that is of a PCIe storage device and is stored in amanagement unit and a base address in a BAR of the PCIe storage deviceaccording to an embodiment of the present invention;

FIG. 7 is a schematic diagram of a structural relationship of mappingfrom an address configured in a PCIe storage device to an MMIO addressof a CPU according to an embodiment of the present invention; and

FIG. 8 is a schematic diagram of a data flow direction of datatransmission between two data processing systems according to anembodiment of the present invention.

DESCRIPTION OF EMBODIMENTS

The following clearly and describes the technical solutions in theembodiments of the present invention with reference to the accompanyingdrawings in the embodiments of the present invention. Apparently, theembodiments to be described are a part rather than all of theembodiments of the present invention. All other embodiments obtained bya person of ordinary skill in the art based on the embodiments of thepresent invention without creative efforts shall fall within theprotection scope of the present invention.

FIG. 1 is a schematic flowchart of migrating data in a remote nodestorage device to a local node storage device in the prior art. A nodemay be a device which implements a computing function or a storagefunction, such as a server. When a Node 1 needs to read, from a nodeNode 2 through a network, data that is stored in a storage device of theNode 2, its implementation process is as follows:

Step 1: A CPU of the Node 1 initiates a remote connection request forreading data.

Step 2: A network adapter in the Node 1 sends a request packet to anetwork adapter of a specified node (that is, the Node 2).

Step 3: The network adapter of the Node 2 forwards the request packet toa CPU of the Node 2.

Step 4: The CPU of the Node 2 parses the request packet, and theninitiates a data request to a PCIe controller of the CPU of the Node 2.

Step 5: The PCIe controller reads requested data to memory in a DMAmanner.

Step 6: The CPU of the Node 2 sends the requested data which is read tothe memory to the network adapter of the Node 2.

Step 7: The network adapter of the Node 2 sends the requested data tothe network adapter of the Node 1 through a network.

Step 8: The CPU of the Node 1 reads the requested data from the networkadapter of the Node 1, and then buffers the data to the memory.

Step 9: The CPU of the Node 1 sends the data buffered in the memory tothe PCIe controller to request to write the data into a PCIe storagedevice.

Step 10: A PCIe controller of the Node 1 writes the received data intothe PCIe storage device.

As may be seen from the foregoing data remote reading process in theprior art, a CPU that is involved in reading and is of a node isinvolved in data reading and writing, and each node needs to apply for asegment of memory space to store data that is read or is to be writtenby the CPU. In this case, in a whole process of data migration, becausedata is migrated for many times, a delay is inevitably increased, andusage ratios of the CPU and memory remain high.

In order to solve the problems of a large delay and high usage ratios ofthe CPU and the memory during a remote data migration in the prior art,an embodiment of the present invention provides a data processingsystem, so as to solve the problems of resource consumption and a delaycaused by occupation of memory and CPU resources during remote datareading and writing between data processing systems in the prior art.

In order to solve the problems of occupation of many CPU and memoryresources and a large transmission delay during cross-node datatransmission in the prior art, an embodiment of the present inventionprovides a data processing system. By combining a network technologywith an MMIO address mapping technology of a PCIe storage device, a dataremote direct access technology between nodes is used to directly copydata. During the copying process, a CPU does not need to be involved ina data migration, and the CPU only needs to perform controlling; and atthe same time, no data needs to be migrated into memory in advance forprocessing, so as to reduce utilization of the CPU and the memory. Inaddition, a migration process of data between the CPU and the memory isreduced, a delay of data processing is reduced, and efficiency of datatransmission is improved.

Referring to FIG. 2, FIG. 2 is a schematic structural diagram of a dataprocessing system 200 according to an embodiment of the presentinvention. The data processing system 200 includes a central processingunit CPU 202, memory 206, a Peripheral Component Interconnect ExpressPCIe controller 203, a network adapter 205, and at least one PCIestorage device 204, and further includes:

a management unit 201, configured to obtain, when the data processingsystem receives a data request, a first storage address of requesteddata in the PCIe storage device according to first address informationcarried in the data request, where the first storage address is an MMIO(Memory mapping I/O, memory mapping input/output) address, where

the network adapter 205 directly reads data from the PCIe storage device204 according to the first storage address, and transmits the data to asecond data processing system, or directly writes the data received fromthe second data processing system into the PCIe storage device 204,where the second data processing system is a data processing system thatcommunicates with the first data processing system through a network.

An MMIO address of a data request is obtained by a management unit 201in the foregoing data processing system, where data stored in a PCIestorage device can be directly obtained from the MMIO address, andaccording to the MMIO address, a network adapter 205 can directly readthe data from the PCIe storage device 204 of the data processing system200, and transmit the data to a second data processing system, ordirectly write the data received from the second data processing systeminto the PCIe storage device 204. Therefore, the processing system canimplement, when performing data transmission between two data processingsystems that communicate through a network, transmitting data directlyfrom the PCIe storage device to the network adapter without usingmemory. During data transmission between the two data processingsystems, a usage ratio of a resource, such as memory and a CPU, isreduced, and efficiency of data transmission is improved.

Referring to FIG. 3, FIG. 3 is a schematic structural diagram of aspecific implementation of a data processing system 200 according to anembodiment of the present invention. As shown in FIG. 3, the PCIecontroller 203 further includes an address translating unit 2031,configured to obtain a second storage address of the data requested bythe data request in the PCIe storage device according to the firststorage address. The second storage address may be a physical address ora logical address, where the physical address is a linear continuousaddress in which data can be directly read, and the logical address isan address which is obtained after linear ordering is performed on anonlinear continuous physical address.

The address translating unit 2031 translates the first storage address,that is, the MMIO address, into the second storage address, where thesecond storage address is a physical address of an accessible medium ofthe PCIe storage device 204, so that when the PCIe controller 203receives a data request of the network adapter 205, the PCIe controller203 can obtain, according to an MMIO address carried in the datarequest, a physical address of an accessible medium corresponding to theMMIO address, and read data by using the physical address. In the PCIestorage device 204, when an accessible medium address is not indicatedby an MMIO address, the network adapter 205 can obtain an accessiblemedium address of the requested data, so as to implement direct readingand writing of the data.

As an optional implementation manner, the address translating unit 2031is further configured to configure a first base address register BAR(base address register), where the first BAR address register stores acorrespondence between the first storage address and the second storageaddress, and the second storage address is a linear continuous storageaddress. If the second storage address is a nonlinear continuous storageaddress, the address translating unit 2031 is configured to configure asecond BAR address register, where the second BAR address registerstores a correspondence between the first storage address and a virtualaddress of the second storage address, and the virtual address of thesecond storage address is an address which is obtained after linearordering is performed on the second storage address.

The foregoing address translating unit 2031 configures the BAR addressregister, so that, in the PCIe storage device, a linear continuousphysical address is made to correspond to the MMIO address in aone-to-one manner and in the PCIe storage device, a logical address thatis obtained after linear ordering is performed on a nonlinear continuousphysical address is made to correspond to the MMIO address in aone-to-one manner, so as to implement mapping of the MMIO address andthe accessible medium address of the PCIe storage device. Therefore, thenetwork adapter maps, according to the MMIO address by using the PCIecontroller, to a PCIe accessible storage medium address that correspondsto the MMIO address in a one-to-one manner, thereby implementing directreading and writing of the data.

As an optional implementation manner, the CPU 202 assigns a uniqueidentifier to each PCIe storage device, where the unique identifier isused to identify each PCIe storage device. Correspondingly, themanagement unit 201 is further configured to establish a correspondencebetween the unique identifier and a base address in a BAR of the PCIestorage device. By using the correspondence between the uniqueidentifier of the PCIe storage device and the base address in the BAR ofthe PCIe storage device, the management unit 201 can obtain, accordingto a unique identifier that is of the PCIe storage device and isincluded in a data request message received by the data processingsystem 200, a base address that corresponds to the unique identifier andis in the BAR of the PCIe storage device. Because the first addressinformation in the data request received by the data processing systemincludes the unique identifier and an LBA (Logical Block Address)address of the PCIe storage device, the management unit 201 can obtainthe MMIO address of the requested data by using the obtained baseaddress in the BAR and the LBA address of the PCIe storage device.

Optionally, the unique identifier includes at least one of a Vender ID,a Device ID, and a hard disk serial number; or the unique identifier isan identifier which is obtained after hashing processing is performed onthe at least one of the Vender ID, the Device ID, and the hard diskserial number.

As an optional implementation manner, as shown in FIG. 3, the managementunit 201 includes a base address obtaining unit 2011 and a storageaddress obtaining unit 2012, where

the base address obtaining unit 2011 is configured to obtain, when thedata processing system 200 receives a first data request of the seconddata processing system that communicates with the data processing system200 through the network, a base address in a BAR of the requested dataaccording to a unique identifier that is of the PCIe storage device 204and is carried in the first data request; and

the storage address obtaining unit 2012 is configured to obtain thefirst storage address of the requested data in the PCIe storage deviceaccording to the base address in the BAR and an LBA address in the firstdata request, where the first storage address is an MMIO address.

As an optional implementation manner, the CPU 202 registers the obtainedfirst storage address in the network adapter. The first storage addressis registered in the network adapter. The network adapter 205 canpublish the first storage address on a PCIe bus when receiving the datarequest that is of the second data processing system and carries thefirst storage address. The PCIe controller 203 obtains the data requestwhen receiving the request that is sent by the network adapter 205 andcarries the first storage address, and sends requested data to thenetwork adapter 205, or writes the data that is received by the networkadapter and sent by the second data processing system into a positioncorresponding to the first storage address in the PCIe storage device.

As an optional implementation manner, the data processing system 200further includes a sending unit 207, where the sending unit 207 isconfigured to send the first storage address obtained by the managementunit 200 to the second data processing system.

Optionally, the PCIe controller 203 obtains the data request that issent by the network adapter 205 and carries the first storage address,and the address translating unit 2031 obtains data of the second storageaddress, and returns the obtained data to the network adapter, or writesthe data sent by the network adapter into the second storage address.

In the embodiment of the present invention, the data processing system200 and another data processing system, for example, the second dataprocessing system, communicate through a network, so as to implementdata transmission between different data processing systems. The networkincludes but is not limited to the Ethernet, a conversion cabletechnology IB network that supports multiple concurrent links, an FC(fiber channel) network, or the like. The foregoing second dataprocessing system may be a system that implements the solution of theembodiment of the present invention, and may also be a data processingsystem in the prior art. When the second data processing system is thesystem that implements the solution of the embodiment of the presentinvention, the second data processing system can also implement directdata reading or writing from the network adapter to the PCIe storagedevice.

As an optional implementation solution, the management unit 203 furtherincludes a global base address obtaining unit 2033 and a global storageaddress obtaining unit 2034, where

the global base address obtaining unit 2033 is configured to obtain,when the data processing system receives a second data request, a baseaddress of data requested by the second data request in a BAR of thesecond data processing system according to a unique identifier that isof the PCIe storage device and is carried in the second data request,where the second data request is a request for sending data to thesecond data processing system or reading data from the second dataprocessing system; and

the global storage address obtaining unit 2034 is configured to obtain,according to the base address in the BAR of the second data processingsystem and an LBA address carried in the second data request, an MMIOaddress of the data requested by the second data request in the seconddata processing system.

Correspondingly, a data transform unit in a PCIe controller of thesecond data processing system obtains, according to the MMIO address ofthe data that is requested by the second data request sent by the dataprocessing system in the second data processing system, a physicaladdress or a logical address of the data requested by the second datarequest in the second data processing system, where the physical addressis a linear continuous address in which data can be directly read, andthe logical address is an address which is obtained after linearordering is performed on a nonlinear continuous physical address.

In the foregoing embodiment, the management unit 203 further stores thecorrespondence between the unique identifier of the PCIe storage deviceand the base address in the BAR of the PCIe storage device in the seconddata processing system, when the data processing system 200 receives thesecond data request for sending data to the second data processingsystem or reading data from the second data processing system, the dataprocessing system 200 can obtain the base address of the data requestedby the second data request in the BAR of the second data processingsystem, and further obtain the MMIO address of the data requested by thesecond data request, so as to implement direct transmission between twodata processing systems without involvement of a CPU or memory, therebysaving CPU and memory resources, and improving efficiency of datatransmission. For example, FIG. 8 shows that data transmission between afirst data processing system and a second data processing system isimplemented, where a black dashed line portion is a track and a flowdirection of data transmission between the two data processing systems.

The data processing system 200 in the embodiment of the presentinvention may also be connected to a plurality of data processingsystems through a communications network, and perform data transmission.The data processing system 200 may obtain the correspondence, which issent by other multiple data processing systems, between the uniqueidentifier of the PCIe storage device and the base address in the BAR ofthe PCIe storage device, so as to implement direct transmission betweenthe data processing systems. The data processing system 200 may alsorequest the correspondence between the unique identifier of the PCIestorage device and the base address in the BAR of the PCIe storagedevice from the other multiple data processing systems, and store thecorrespondence, so as to implement direct transmission between the dataprocessing systems. Certainly, after the data processing system 200obtains the correspondence in the other multiple data processing systemsand between the unique identifier of the PCIe storage device and thebase address in the BAR of the PCIe storage device, when thecorrespondence in the other multiple data processing systems and betweenthe unique identifier of the PCIe storage device and the base address inthe BAR of the PCIe storage device changes, a data processing system inwhich a change occurs may send the changed correspondence to the dataprocessing system 200.

Referring to FIG. 4, FIG. 4 is a schematic flowchart of a dataprocessing method according to an embodiment of the present invention.The data processing method in the embodiment of the present invention isapplied to a data processing system including a central processing unitCPU, memory, a Peripheral Component Interconnect Express PCIecontroller, a network adapter, and at least one PCIe storage device, andthe method includes:

Step 400: Obtain, when the data processing system receives a datarequest, first address information carried in the data request.

Step 402: Obtain a first storage address of requested data in the PCIestorage device according to the first address information, where thefirst storage address is an MMIO address.

Step 404: The network adapter directly reads data from the PCIe storagedevice according to the first storage address, and transmits the data tothe second data processing system, or directly writes the data receivedfrom a second data processing system into the PCIe storage device, wherethe second data processing system is a data processing system thatcommunicates with the first data processing through a network.

Step 400 and step 402 in the foregoing method embodiment may beimplemented by a management unit in the data processing system. Themanagement unit may be a module or a logical unit in the CPU, and mayalso be a separate hardware entity in the data processing system. Aspecific implementation manner of the management unit is not limited inthe embodiment of the present invention.

An MMIO address of a data request is obtained in step 402 in theforegoing embodiment, where data stored in a PCIe storage device can bedirectly obtained from the MMIO address, and according to the MMIOaddress, a network adapter can directly read the data from the PCIestorage device of the data processing system, and transmit the data to asecond data processing system, or directly write the data received fromthe second data processing system into the PCIe storage device.Therefore, the processing system can implement, when performing datatransmission between two data processing systems that communicatethrough a network, transmitting data directly from the PCIe storagedevice to the network adapter without using memory. During datatransmission between the two data processing systems, a usage ratio of aresource, such as memory and a CPU, is reduced, and efficiency of datatransmission is improved.

As an optional implementation manner, the data processing method furtherincludes: obtaining, by the PCIe storage device, a second storageaddress of the data requested by the data request in the PCIe storagedevice according to the first storage address. The second storageaddress is a physical address or a logical address, where the physicaladdress is a linear continuous address in which data can be directlyread, and the logical address is an address which is obtained afterlinear ordering is performed on a nonlinear continuous physical address.

Optionally, the PCIe controller configures a first BAR address register,where the first BAR address register stores a correspondence between thefirst storage address and the second storage address, and the secondstorage address is a linear continuous storage address. Alternatively,the PCIe controller configures a second BAR address register, where thesecond BAR address register stores a correspondence between the firststorage address and a virtual address of the second storage address, thesecond storage address is a nonlinear continuous storage address, andthe virtual address of the second storage address is an address which isobtained after linear ordering is performed on the second storageaddress.

The BAR address register is configured, so that, in the PCIe storagedevice, a linear continuous physical address is made to correspond tothe MMIO address in a one-to-one manner, and in the PCIe storage device,a logical address that is obtained after linear ordering is performed ona nonlinear continuous physical address is made to correspond to theMMIO address in a one-to-one manner, so as to implement mapping of theMMIO address and an accessible medium address of the PCIe storagedevice. Therefore, the network adapter maps, according to the MMIOaddress by using the PCIe controller, to a PCIe accessible storagemedium address that corresponds to the MMIO address in a one-to-onemanner, thereby implementing direct reading and writing of the data.

As an optional implementation manner, the data processing method furtherincludes: assigning, by the CPU, a unique identifier to each PCIestorage device, where the unique identifier is used to identify eachPCIe storage device; and establishing, according to the uniqueidentifier, a correspondence between the unique identifier and a baseaddress in a BAR of the PCIe storage device.

Optionally, the first address information includes the unique identifierand a logical block address LBA of the PCIe storage device.

Optionally, the unique identifier includes at least one of a Vender ID,a Device ID, and a hard disk serial number; or the unique identifier isan identifier which is obtained after hashing processing is performed onthe at least one of the Vender ID, the Device ID, and the hard diskserial number.

By using the correspondence between the unique identifier of the PCIestorage device and the base address in the BAR of the PCIe storagedevice, according to a unique identifier that is of the PCIe storagedevice and is included in a data request message received by the dataprocessing system, a base address that corresponds to the uniqueidentifier and is in the BAR of the PCIe storage device can be obtained.Because the first address information in the data request received bythe data processing system includes the unique identifier and the LBAaddress of the PCIe storage device, the MMIO address of the requesteddata can be obtained by using the obtained base address in the BAR andthe LBA address of the PCIe storage device.

As an optional implementation manner, the obtaining a first storageaddress of requested data in the PCIe storage device includes:

obtaining a base address in a BAR of the requested data according to aunique identifier that is of the PCIe storage device and is carried inthe first data request; and

obtaining the first storage address of the requested data in the PCIestorage device according to the base address in the BAR and an LBAaddress in the first data request, where the first storage address is anMMIO address.

Optionally, the CPU registers the obtained first storage address in thenetwork adapter. The data processing system sends the obtained firststorage address to the second data processing system. When the networkadapter of the data processing system receives the data request thatcarries the first storage address and is sent by the second dataprocessing system, the network adapter publishes the received datarequest on a PCIe bus, where the request can be received by the PCIecontroller in the data processing system. After the PCIe controllerobtains the data request that carries the first storage address and issent by the network adapter, the PCIe controller obtains a correspondingsecond storage address according to the first storage address, obtainsdata from the second storage address, and returns the obtained data tothe network adapter, or writes the data sent by the network adapter intothe second storage address.

As an optional implementation manner, the method further includes:

obtaining, when the data processing system receives a second datarequest, a base address of data requested by the second data request ina BAR of the second data processing system according to a uniqueidentifier that is of the PCIe storage device and is carried in thesecond data request, where the second data request is used for sendingdata to the second data processing system or reading data from thesecond data processing system; and

obtaining, according to the base address in the BAR of the second dataprocessing system and an LBA address carried in the second data request,an MMIO address of the data requested by the second data request in thesecond data processing system.

Correspondingly, a PCIe controller of the second data processing systemobtains, according to the MMIO address of the data that is requested bythe second data request sent by the data processing system in the seconddata processing system, a physical address or a logical address of thedata requested by the second data request in the second data processingsystem, where the physical address is a linear continuous address inwhich data can be directly read, and the logical address is an addresswhich is obtained after linear ordering is performed on a nonlinearcontinuous physical address.

The correspondence between the unique identifier of the PCIe storagedevice and the base address in the BAR of the PCIe storage device in thesecond data processing system is obtained as described above, so thatthe base address of the data requested by the second data request in theBAR of the second data processing system can be obtained, and the MMIOaddress of the data requested by the second data request is furtherobtained, so as to implement direct transmission between two dataprocessing systems without involvement of a CPU or memory, therebysaving CPU and memory resources, and improving efficiency of datatransmission.

FIG. 5 exemplarily shows a schematic structural diagram of base hardwareof an implementation manner of a data processing system according to anembodiment of the present invention. The data processing system isformed by base hardware including a CPU, memory, a PCIe controller, aPCIe bus, a PCIe storage device, and a network adapter. The networkadapter in the data processing system is a network adapter that supportsa network direct access technology and is based on a PCIe bustechnology. The network direct access technology includes but is notlimited to an RDMA (Remote Direct Memory Access) technology and thelike. The network adapter includes but is not limited to an Ethernetcard, an IB HCA (Infiniband Host Channel Adapter, conversion cabletechnology host channel adapter that supports multiple concurrentlinks), an iWarp HCA (internet wide area RDMA protocol Host ChannelAdapter), a Rapid IO HCA (Rapid IO Host Channel Adapter), and the like.That the network adapter is based on the PCIe bus technology indicatesthat an uplink bus interface of the network adapter is a PCIe. The dataprocessing system further includes at least one PCIe storage devicebased on the PCIe bus. The PCIe storage device includes but is notlimited to memory, a hard disk, an SSD (Solid State Disk), a Flash, anNVRAM (Non-Volatile Random Access Memory), and the like. Animplementation manner of the data processing system includes but is notlimited to a device such as a server (a rack server, a tool turretserver, a shelf server, or the like), a storage device or a midrangecomputer.

According to the data processing system in the embodiment of the presentinvention, a management unit is added based on a base architecture ofhardware as shown in FIG. 5. The management unit is configured toobtain, when the data processing system receives a data request, a firststorage address of requested data in the PCIe storage device accordingto first address information carried in the data request, where thefirst storage address is an MMIO address. The management unit may beimplemented in the CPU, and may also be implemented by using separatehardware. An implementation manner of the management unit in the dataprocessing system is not limited in the embodiment of the presentinvention.

Specifically, the management unit obtains, according to an establishedcorrespondence between a base address in a BAR of the PCIe storagedevice and a unique identifier of the PCIe storage device, an address ofdata of the data request that is received by the data processing systemin the PCIe storage device.

The unique identifier of the PCIe storage device, for example, a GUID(Globally Unique Identifier), is an identifier that is assigned by thedata processing system for each PCIe storage device and uniquelydetermines the PCIe storage device. The unique identifier may be aunique identifier assigned by the CPU, and may also be a uniqueidentifier assigned by the management unit. The unique identifier may bea unique set of character string formed by a Vender ID (vender identity)and a Device ID (device identity) of the PCIe storage device, and aunique identifier ID (for example, a hard disk serial number) of astorage device mounted in the PCIe storage device, or an identifier thatis obtained after hashing is performed on the character string.Composition of the unique identifier is not limited in the embodiment ofthe present invention, as long as information of a storage device insidea node can be uniquely marked.

The base address in the BAR of the PCIe storage device is assigned whenthe data processing system starts. After the data processing systemcompletes starting, the management unit obtains a base address in a BARof each PCIe storage device. The management unit may obtain the baseaddress in the BAR of each PCIe storage device and the unique identifierof the PCIe storage device by scanning all PCIe storage devices in thedata processing system.

The management unit records, according to the obtained base address inthe BAR of each PCIe storage device and the unique identifier of thePCIe storage device, a correspondence between the base address in theBAR of each PCIe storage device and the unique identifier of the PCIestorage device.

When the data processing system receives a data request, the datarequest carries a unique identifier and an LBA (Logical Block Address)address of requested data in the PCIe storage device. The managementunit obtains, according to the unique identifier carried in the datarequest and the established correspondence between the base address inthe BAR of each PCIe storage device and the unique identifier of thePCIe storage device, the base address of the requested data in the BARof the PCIe storage device, and obtains an MMIO address of the requesteddata with reference to the LBA address. The management unit may obtain astart address and an end address of the MMIO address of the requesteddata in the following manner:Start address=Mapped base address in BAR+(LBA×Block size)End address=Mapped base address in BAR+((LBA+Block number)×Block size)−1

The management unit is further configured to maintain the correspondencebetween the base address in the BAR of the PCIe storage device and theunique identifier of the PCIe storage device, and refresh thecorrespondence between the base address in the BAR of the PCIe storagedevice and the unique identifier of the PCIe storage device when thebase address in the BAR of the PCIe storage device changes. For example,the base address in the BAR of the PCIe storage device may change due torestarting of the data processing system, that is, the base address inthe BAR of the PCIe storage device, which is assigned by the dataprocessing system for each PCIe storage device, may be different from abase address that is assigned last time. The management unit needs torefresh the correspondence between the unique identifier of the PCIestorage device and the base address in the BAR of the PCIe storagedevice according to the unique identifier of each PCIe storage device.

The management unit may also obtain a correspondence between a baseaddress in a BAR of a PCIe storage device in another data processingsystem and a unique identifier of the PCIe storage device. By using thecorrespondence between the base address in the BAR of the PCIe storagedevice in the another data processing system and the unique identifierof the PCIe storage device, when data reading and writing are performedon the another data processing system, a storage address of the PCIEstorage device in the another data processing system can be obtained.Obtaining the correspondence between the base address in the BAR of thePCIe storage device in the another data processing system and the uniqueidentifier of the PCIe storage device may be implemented in a mannerthat the data processing system actively initiates a request to theanother data processing system, and may also be implemented after thecorrespondence actively sent by the another data processing system isreceived. A specific obtaining manner is not limited in the embodimentof the present invention

Referring to FIG. 6, FIG. 6 is an exemplary diagram of a correspondencebetween a unique identifier that is of a PCIe storage device and isstored in a management unit and a base address in a BAR of the PCIestorage device according to an embodiment of the present invention. Inthis exemplary diagram, an IP address is used to identify a uniqueaddress of the data processing system on a network in which the dataprocessing system is located, where a GUID is a unique identity of thePCIe storage device, a mapping space start address is a start address ofa PCIe storage device address in an area mapped from CPU addressingspace; a device logical address refers to a logical start address insidea PCIe storage device; and a space length refers to a whole length ofthe area mapped in the system.

In the embodiment of the present invention, the correspondence betweenthe unique identifier of the PCIe storage device and the base address inthe BAR of the PCIe storage device may be established by a drive of thePCIe storage device, and may also be established by the management unit.Specifically, a manner of adding a script may be used for automaticloading after the data processing system starts, and a manual manner mayalso be used for loading. When the correspondence is established by thedrive of the PCIe storage device, first the drive of the PCIe storagedevice configures a PCIe BAR address register, and the management unitreads a configured mapping relationship. When the correspondence isestablished by the management unit, correspondence establishing isimplemented by configuring a register of the PCIe storage device.

The PCIe storage device in the embodiment of the present inventionfurther includes an address translating unit, configured to obtain asecond storage address of the data requested by the data request in thePCIe storage device according to the first storage address.

The address translating unit may be implemented in a PCIe devicecontroller. A correspondence between a medium accessible address and theMMIO address in the PCIe storage device is established, and the mediumaccessible address that corresponds to the MMIO address in the PCIestorage device can be obtained according to the MMIO address when a datareading and writing request for the MMIO address is received, forexample, a storage address of the PCIe storage device, for performingdata reading and writing.

That a PCIe NVRAM serves as the PCIe storage device is used as anexample, according to a PCIe protocol specification that the PCIe NVRAMfollows, address space of an accessible medium inside the PCIe NVRAM isdirectly mapped to MMIO address space of a CPU, so that all reading andwriting requests for the PCIe NVRAM are equivalent to a request for anMMIO address. The MMIO address space corresponds to all accessible spaceof the NVRAM, that is, the correspondence between the medium accessibleaddress and the MMIO address in the PCIe storage device is established.By accessing the MMIO address space, NVRAM space corresponding to theMMIO address space can be directly accessed. Directly mapping theaddress space of the accessible medium inside the PCIe NVRAM to the MMIOaddress space of the CPU can be implemented in a manner of configuringthe BAR address register.

As shown in FIG. 7, FIG. 7 is a schematic diagram of a structuralrelationship of mapping from an address configured in a PCIe storagedevice to an MMIO address of a CPU according to an embodiment of thepresent invention. In the figure, a PCIe End Point in a PCIe controlleris used as an address translating unit, and configures a PCIe BARaddress register to map the address in the PCIe storage device to theMMIO address of the CPU, so that an access to CPU address (address forproviding a DMA) space may be directly mapped to an accessible mediumaddress of the PCIe storage device.

In the embodiment of the present invention, a correspondence between amedium accessible address in the PCIe storage device and the MMIOaddress is established, that is, a mapping relationship between addressspace of the PCIe storage device and MMIO address space in the CPU isestablished. Based on whether a physical address of the PCIe storagedevice is a linear continuous storage address, implementation mannersfor establishing the mapping relationship are different.

When the physical address of the PCIe storage device is a linearcontinuous storage address, the BAR address register configured by theaddress translating unit maps a segment of CPU address space with a sizeconsistent with a size of an actual storage device. Because the addressof the PCIe storage device is linear continuous, the address of the PCIestorage device corresponds to an address of the mapped CPU address spacein a one-to-one manner. An operation of the CPU on this segment ofaddress space can be obtained by the address translating unit, where theaddress translating unit converts a received request to an actualphysical address of the PCIe storage device.

When the physical address of the PCIe storage device is not a linearcontinuous storage address, the address translating unit establishesmapping between a storage address that is obtained after linear orderingis performed and a CPU address. That is, a BAR address register isconfigured to map a segment of CPU address space with a size consistentwith a size of a virtual address, where the virtual address is anaddress which is obtained after linear ordering is performed on anonlinear continuous storage address. For example, a sector, a block ora unit of another minimum unit is continuously labeled to form “virtual”linear space, and is used to establish a mapping relationship with theCPU address space.

According to a correspondence that is between a base address in a BAR ofthe PCIe storage device and a unique identity of the PCIe storage deviceand is established by a management unit in the foregoing data processingsystem, the management unit can obtain an MMIO address of data that isrequested by a data request received by the data processing system, andinitiates the data request to a PCIe controller according to the MMIOaddress. An address translating unit in the PCIe controller obtains,according to an established correspondence between a medium accessibleaddress in the PCIe storage device and the MMIO address, a mediumaccessible address of the requested data in the PCIe storage device,that is, an actual physical address. Data reading or data writing can bedirectly performed by using the medium accessible address.

Correspondingly, a network adapter in the data processing system candirectly read data from the PCIe storage device or write data into thePCIe storage device according to the foregoing MMIO address. Theproblems of consumption of memory and CPU resources and a transmissiondelay which are caused when related data in a PCIe storage device needsto be read to physical memory, and then is transmitted to a remote dataprocessing system by using the physical memory in the prior art areavoided.

The following describes implementation manners of the data processingsystem and the data processing method in the embodiments of the presentinvention in detail by using that a first data processing system needsto write data of 4 Kbytes of an offset address 0x1000-0x2000 of a PCIeSSD F into a position of 0x3000-0x4000 of a PCIe SSD G of a second dataprocessing system as an example. A PCIe SSD is a specific implementationmanner of a PCIe storage device. In this embodiment, that the first dataprocessing system not only establishes a correspondence between a uniqueidentifier of a PCIe SSD of the first data processing system and a baseaddress in a BAR of the PCIe SSD, but also obtains a correspondencebetween a unique identifier of a PCIe SSD in the second data processingsystem and a base address in a BAR of the PCIe SSD is used as an examplefor description.

Step 500: The first data processing system obtains the base address inthe BAR of the PCIe SSD.

The first data processing system obtains, according to a correspondencebetween a unique identifier of a PCIe SSD in a management unit and abase address in a BAR of the PCIe SSD, a base address 0xff00 0000 in aPCIe BAR of the PCIe SSD F, so as to obtain an MMIO addresscorresponding to an offset address 0x1000, for example, 0xff00 1000; andfurther obtain a base address 0xfe00 0000 in a PCIe BAR of the PCIe SSDG, so as to obtain an MMIO address corresponding to an offset address0x3000-0x4000, for example, 0xfe00 3000.

Step 502: A network adapter of the first data processing systeminitiates a data writing request.

The network adapter of the first data processing system initiates a datarequest to a PCIe SSD F device by using a new MMIO address 0xff00 1000of the PCIe SSD F, a PCIe interface inside the PCIe SSD F deviceconverts the MMIO address into an internal accessible storage mediumaddress XXX, where a result of the XXX may be different according todifferent implementations of a mapping unit. The PCIe SSD F reads datacorresponding to the storage medium address XXX, and sends the data tothe network adapter by using a PCIe bus after reading is complete. Inthis whole process, no CPU needs to be involved in a process of datatransmission, and at the same time, no memory needs to be occupied.

Step 504: A network adapter of the second data processing systemreceives data sent by the network adapter of the first data processingsystem, and sends the data to the PCIe SSD G.

The network adapter of the second data processing system initiates adata writing request to a PCIe SSD G device by using a new MMIO address0xfe00 3000 of the PCIe SSD G, a PCIe interface of the PCIe SSD G deviceconverts the MMIO address into an internal accessible storage mediumaddress YYY, where a result of the YYY may be different according todifferent implementations of the mapping unit. The PCIe SSD G writes thedata sent by the network adapter into the storage medium address YYY. Inthis whole process, no CPU needs to be involved in a process of datatransmission, and no memory needs to be occupied.

That the PCIe interface inside the PCIe SSD F device converts the MMIOaddress into the internal accessible storage medium address XXX, andthat the PCIe interface of the PCIe SSD G device converts the MMIOaddress into the internal accessible storage medium address YYY areapplied to a case in which a second storage address is a linearcontinuous physical address. When the second storage address is alogical address, that the PCIe interface inside the PCIe SSD F deviceconverts the MMIO address into the internal accessible storage mediumaddress XXX also needs conversion from a logical address to a nonlinearcontinuous address, which is not repeatedly described herein.

For a case in which the first data processing system does not obtain thecorrespondence between the unique identifier of the PCIe SSD and thebase address in the BAR of the PCIe SSD in the second data processingsystem, a management unit of the second data processing systemestablishes the correspondence between the unique identifier of the PCIeSSD and the base address in the BAR of the PCIe SSD in the second dataprocessing system, when the network adapter of the second dataprocessing system receives data reading and writing requests sent by thefirst data processing system, obtains, according to the correspondencebetween the unique identifier of the PCIe SSD and the base address inthe BAR of the PCIe SSD in the second data processing system, a baseaddress in which data needs to be written and in the BAR of the PCIeSSD, and directly writes the data into the corresponding PCIe SSD.

In the foregoing embodiment of the present invention, a PCIe storagedevice is used as an example to describe an implementation manner fordirectly reading or writing data during data transmission betweendifferent data processing systems. For a storage device passing througha memory interface, for example, an SCM (Storage Class Memory), an RRAM(Resistive Random Access Memory), or an NVDIMM (Non-Volatile DIMMs),reference may also be made to an implementation manner of the foregoingPCIe storage device, and a management unit is used to perform directreading and writing processing of data on the SCM, the RRAM, and theNVDIMM. When a system starts, during initialization, a storage device(NVDIMM\RRAM\SCM) may register space accessed by the storage device inthe system. By accessing a registered address, the storage device can beaccessed. Different from the foregoing embodiment, there is no need toperform mapping between an accessible medium address and an MMIO addressin the PCIe storage device, and there is also no need to perform addresstranslation, but in order to allow another data processing system on anetwork to obtain an address of to-be-accessed data, an address of thestorage device (NVDIMM\RRAM\SCM) in the system needs to obtained, andthe another data processing system needs to be synchronized.

A person of ordinary skill in the art may be aware that, in combinationwith the examples described in the embodiments disclosed in thisspecification, units and algorithm steps may be implemented byelectronic hardware, computer software, or a combination thereof. Toclearly describe the interchangeability between the hardware and thesoftware, the foregoing has generally described compositions and stepsof each example according to functions. Whether the functions areperformed by hardware or software depends on particular applications anddesign constraint conditions of the technical solutions. A personskilled in the art may use different methods to implement the describedfunctions for each particular application, but it should not beconsidered that the implementation goes beyond the scope of the presentinvention.

It may be clearly understood by a person skilled in the art that, forthe purpose of convenient and brief description, for a detailed workingprocess of the foregoing system, apparatus, and unit, reference may bemade to a corresponding process in the foregoing method embodiments, anddetails are not described herein again.

In the several embodiments provided in the present application, itshould be understood that the disclosed system, apparatus, and methodmay be implemented in other manners. For example, the describedapparatus embodiment is merely exemplary. For example, the unit divisionis merely logical function division and may be other division in actualimplementation. For example, a plurality of units or components may becombined or integrated into another system, or some features may beignored or not performed. In addition, the displayed or discussed mutualcouplings or direct couplings or communication connections may beimplemented through some interfaces. The indirect couplings orcommunication connections between the apparatuses or units may beimplemented in electronic, mechanical, or other forms.

The units described as separate parts may or may not be physicallyseparate, and parts displayed as units may or may not be physical units,may be located in one position, or may be distributed on a plurality ofnetwork units. A part or all of the units may be selected according toactual needs to achieve the objectives of the solutions of theembodiments of the present invention.

In addition, functional units in the embodiments of the presentinvention may be integrated into one processing unit, or each of theunits may exist alone physically, or two or more units are integratedinto one unit. The integrated unit may be implemented in a form ofhardware, or may be implemented in a form of a software functional unit.

When the integrated unit is implemented in the form of a softwarefunctional unit and sold or used as an independent product, theintegrated unit may be stored in a computer-readable storage medium.Based on such an understanding, the technical solutions of the presentinvention essentially, or the part contributing to the prior art, or allor a part of the technical solutions may be implemented in the form of asoftware product. The computer software product is stored in a storagemedium and includes several instructions for instructing a computerdevice (which may be a personal computer, a server, a network device, orthe like) to perform all or a part of the steps of the methods describedin the embodiments of the present invention. The foregoing storagemedium includes: any medium that can store program code, such as a USBflash drive, a removable hard disk, a read-only memory (ROM, Read-OnlyMemory), a random access memory (RAM, Random Access Memory), a magneticdisk, or an optical disc.

The foregoing descriptions are merely specific embodiments of thepresent invention, but are not intended to limit the protection scope ofthe present invention. Any modification or replacement readily figuredout by a person skilled in the art within the technical scope disclosedin the present invention shall fall within the protection scope of thepresent invention. Therefore, the protection scope of the presentinvention shall be subject to the protection scope of the claims.

What is claimed is:
 1. A data processing system, comprising a centralprocessing unit (CPU), a memory, a Peripheral Component InterconnectExpress (PCIe) controller, a network adapter, and at least one PCIestorage device, and further comprising: a management unit, configured toobtain, when the data processing system receives a data request, a firststorage address of requested data in the at least one PCIe storagedevice according to first address information carried in the datarequest, wherein the first storage address is a memory mappinginput/output (MMIO) address, wherein the network adapter directly readsdata from the at least one PCIe storage device according to the firststorage address, and transmits the data to a separate data processingsystem, or directly writes the data received from the separate dataprocessing system into the at least one PCIe storage device according tothe first storage address, wherein the separate data processing systemcommunicates with the data processing system through a network; whereinthe PCIe controller comprises an address translating unit, configured toobtain a second storage address of the data requested by the datarequest in the at least one PCIe storage device according to the firststorage address; the second storage address is a logical address,wherein the logical address is an address which is obtained after linearordering is performed on a nonlinear continuous physical address.
 2. Thedata processing system according to claim 1, wherein the addresstranslating unit is further configured to configure a first Base AddressRegister (BAR) address register, wherein the first BAR address registerstores a correspondence between the first storage address and the secondstorage address, and the second storage address is a linear continuousstorage address.
 3. The data processing system according to claim 1,wherein the address translating unit is further configured to configurea second Base Address Register (BAR) address register, wherein thesecond BAR address register stores a correspondence between the firststorage address and a virtual address of the second storage address, thesecond storage address is a nonlinear continuous storage address, andthe virtual address of the second storage address is obtained afterlinear ordering is performed on the second storage address.
 4. The dataprocessing system according to claim 1, wherein the CPU assigns a uniqueidentifier to each PCIe storage device, to identify each PCIe storagedevice.
 5. The data processing system according to claim 4, wherein thefirst address information comprises the unique identifier and a logicalblock address (LBA) of the PCIe storage device.
 6. The data processingsystem according to claim 4, wherein the management unit is furtherconfigured to establish a correspondence between the unique identifierand a base address in a Base Address Register (BAR) of the PCIe storagedevice.
 7. The data processing system according to claim 4, wherein theunique identifier comprises at least one of a vender identity Venderidentifier (ID), a device identity Device ID, and a hard disk serialnumber; or the unique identifier is an identifier which is obtainedafter hashing processing is performed on the at least one of the VenderID, the Device ID, and the hard disk serial number.
 8. The dataprocessing system according to claim 5, wherein the management unitcomprises a base address obtaining unit and a storage address obtainingunit, wherein the base address obtaining unit is configured to obtain,when the data processing system receives the data request of theseparate data processing system that communicates with the dataprocessing system through the network, a base address in a BAR of therequested data according to a unique identifier that is of the at leastone PCIe storage device and is carried in the data request; and thestorage address obtaining unit is configured to obtain the first storageaddress of the requested data in the at least one PCIe storage deviceaccording to the base address in the BAR and an LBA address carried inthe first data request.
 9. A data processing method, wherein the methodis applied to a data processing system comprising a central processingunit (CPU), a memory, a Peripheral Component Interconnect Express (PCIe)controller, a network adapter, and at least one PCIe storage device, andthe method comprises: obtaining, when the data processing systemreceives a data request, first address information carried in the datarequest; obtaining a first storage address of requested data in the atleast one PCIe storage device according to the first addressinformation, wherein the first storage address is a memory mappinginput/output (MMIO) address; and directly reading, by the networkadapter, data from the at least one PCIe storage device according to thefirst storage address, and transmitting the data to a separate dataprocessing system, or directly writing the data received from theseparate data processing system into the at least one PCIe storagedevice according to the first storage address, wherein the separate dataprocessing system communicates with the data processing system through anetwork; wherein the PCIe controller obtains a second storage address ofthe data requested by the data request in the at least one PCIe storagedevice according to the first storage address; the second storageaddress is a logical address, wherein the logical address is an addresswhich is obtained after linear ordering is performed on a nonlinearcontinuous physical address.
 10. The data processing method according toclaim 9, wherein the method further comprises: configuring, by the PCIecontroller, a first Base Address Register (BAR) address register,wherein the first BAR address register stores a correspondence betweenthe first storage address and the second storage address, and the secondstorage address is a linear continuous storage address.
 11. The dataprocessing method according to claim 9, wherein the method furthercomprises: configuring, by the PCIe controller, a second Base AddressRegister (BAR) address register, wherein the second BAR address registerstores a correspondence between the first storage address and a virtualaddress of the second storage address, the second storage address is anonlinear continuous storage address, and the virtual address of thesecond storage address is an address which is obtained after linearordering is performed on the second storage address.
 12. The dataprocessing method according to claim 9, wherein the CPU assigns a uniqueidentifier to each PCIe storage device, to identify each PCIe storagedevice.
 13. The data processing system according to claim 12, whereinthe first address information comprises the unique identifier and alogical block address (LBA) of the PCIe storage device.
 14. The dataprocessing method according to claim 12, wherein the method furthercomprises: establishing a correspondence between the unique identifierand a base address in a Base Address Register (BAR) of the PCIe storagedevice.
 15. The data processing method according to claim 12, whereinthe unique identifier comprises at least one of a vender identity Venderidentifier (ID), a device identity Device ID, and a hard disk serialnumber; or the unique identifier is an identifier which is obtainedafter hashing processing is performed on the at least one of the VenderID, the Device ID, and the hard disk serial number.
 16. The dataprocessing method according to claim 13, wherein the obtaining the firststorage address of the requested data in the PCIe storage devicecomprises: obtaining a base address in a Base Address Register (BAR) ofthe requested data according to a unique identifier that is of the atleast one PCIe storage device and is carried in the data request; andobtaining the first storage address of the requested data in the atleast one PCIe storage device according to the base address in the BARand an LBA address carried in the data request.